<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<div id="app">

    <div>{{message}}</div>
    <div><input type="text" v-model="message" class="txt" /></div>
    <div><input type="text" v-bind:value="message" class="txt" /></div>
</div>
<script>
    new Vue({
        el: "#app",
        data() {
            return {
                message: "hello vue"
            }
        }
    });
</script>
</body>
</html>